package bpm.dao.impl.user;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import bpm.domain.user.OrgTrResource;
/**
 * 
 * @author ZhaoWangLong Jul 15, 2011
 *
 */
public class OrgTrResourceRowMapper implements RowMapper {
	public Object mapRow(ResultSet rs, int i) throws SQLException {
		OrgTrResource resource=new OrgTrResource();
		resource.setMainId(rs.getString("MAIN_ID"));
		resource.setModuleId(rs.getString("MODULE_ID"));
		resource.setResourceName(rs.getString("RESOURCE_NAME"));
		resource.setUrl(rs.getString("URL"));
		resource.setResourceRemark(rs.getString("RESOURCE_REMARK"));
		return resource;
	}

}
